

    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="ai_name" required  lay-verify="required" placeholder="请输入名字" autocomplete="off" class="layui-input" value="<? echo $employee['name']?>">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">账号</label>
        <div class="layui-input-block">
            <input type="text" name="ai_mid" required  lay-verify="required" autocomplete="off" class="layui-input" value="<? echo $employee['mid']?>">
        </div>
    </div>




        <div class="layui-form-item">
            <label class="layui-form-label">电话</label>
            <div class="layui-input-block">
                <input type="text" name="ai_phone" placeholder="请输入电话" autocomplete="off" class="layui-input" value="<? echo $employee['phone']?>">
            </div>
        </div>




        <div class="layui-form-item">
            <label class="layui-form-label">登陆权限</label>
            <div class="layui-input-block">

                <input type="radio" name="ai_authority" value="是" title="是"
                    <? if($employee['authority']=="是"){echo "checked";} ?>
                >
                <input type="radio" name="ai_authority" value="否" title="否"
                    <? if($employee['authority']=="否"){echo "checked";} ?>
                >
            </div>
        </div>





        <? if(in_array("admin",$quanxian)){?>
            <div class="layui-form-item">
                <label class="layui-form-label">系统权限</label>
                <div class="layui-input-block">

                    <? $employee_quanxian=explode(",",$employee['quanxian']);?>

                    <input type="checkbox" name="ai_quanxian[]" value="admin" title="管理员" <?if(in_array('admin',$employee_quanxian)){echo "checked";}?>>

                    <?foreach ($plate as $k=>$v) {
                        if($v['status']=='public'){?>
                                <div>
                            <input type="checkbox" name="ai_quanxian[]" value="<?echo $k?>" title="<?echo $v['name']?>" <?if(in_array($k,$employee_quanxian)){echo "checked";}?>  >
：
                                    <?foreach ($v['permission'] as $k2=>$v2) {?>
                                        <input type="checkbox" name="ai_quanxian[]" value="<?echo $v2?>" title="<?echo str_replace($v['name']."_","",$v2)?>" <?if(in_array($v2,$employee_quanxian)){echo "checked";}?>  >
                                    <?;}?>

                                </div>
                        <?}?>
                    <?}?>


                </div>
            </div>
        <?}?>



        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="ai_status" value="在职" title="在职"
                    <? if($employee['status']=="在职"){echo "checked";} ?>
                >

                <input type="radio" name="ai_status" value="休假" title="休假"
                    <? if($employee['status']=="休假"){echo "checked";} ?>
                >

                <input type="radio" name="ai_status" value="辞职" title="辞职"
                    <? if($employee['status']=="辞职"){echo "checked";} ?>
                >
                <input type="radio" name="ai_status" value="辞退" title="辞退"
                    <? if($employee['status']=="辞退"){echo "checked";} ?>
                >


            </div>
        </div>




        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="ai_remark" placeholder="备注" class="layui-textarea"><? echo $employee['remark']?></textarea>
            </div>
        </div>


